package com.wyzz.hr.pojo.base;

import java.io.Serializable;

import com.wyzz.hr.pojo.StatusconfPK;

public abstract class BaseStatusconfPK implements Serializable {

	public BaseStatusconfPK() {
		hashCode = 0x80000000;
	}

	public BaseStatusconfPK(Integer statusconfNo, String statusconfTablename) {
		hashCode = 0x80000000;
		setStatusconfNo(statusconfNo);
		setStatusconfTablename(statusconfTablename);
	}

	public Integer getStatusconfNo() {
		return statusconfNo;
	}

	public void setStatusconfNo(Integer statusconfNo) {
		this.statusconfNo = statusconfNo;
	}

	public String getStatusconfTablename() {
		return statusconfTablename;
	}

	public void setStatusconfTablename(String statusconfTablename) {
		this.statusconfTablename = statusconfTablename;
	}

	public boolean equals(Object obj) {
		if (null == obj)
			return false;
		if (!(obj instanceof StatusconfPK))
			return false;
		StatusconfPK mObj = (StatusconfPK) obj;
		if (null != getStatusconfNo() && null != mObj.getStatusconfNo()) {
			if (!getStatusconfNo().equals(mObj.getStatusconfNo()))
				return false;
		} else {
			return false;
		}
		if (null != getStatusconfTablename()
				&& null != mObj.getStatusconfTablename())
			return getStatusconfTablename().equals(
					mObj.getStatusconfTablename());
		else
			return false;
	}

	public int hashCode() {
		if (0x80000000 == hashCode) {
			StringBuilder sb = new StringBuilder();
			if (null != getStatusconfNo()) {
				sb.append(getStatusconfNo().hashCode());
				sb.append(":");
			} else {
				return super.hashCode();
			}
			if (null != getStatusconfTablename()) {
				sb.append(getStatusconfTablename().hashCode());
				sb.append(":");
			} else {
				return super.hashCode();
			}
			hashCode = sb.toString().hashCode();
		}
		return hashCode;
	}

	protected int hashCode;
	private Integer statusconfNo;
	private String statusconfTablename;
}
